import * as API from '../../api'

export default {
  namespaced: true,
  state: {
    songdanlist: []
  },
  getters: {},
  actions: {
    async getSongDan({ commit }) {
      console.log(2)
      const songdanlist = await API.songsheet.reqGetSongDan()
      commit('GET_SONG_DAN', songdanlist)
    }
  },
  mutations: {
    GET_SONG_DAN(state, songdanlist) {
      state.songdanlist = songdanlist
    }
  }
}
